/*================================================================
*   Copyright (C) 2017 LiuYao. All rights reserved.
*   
*   Filename : variable_factory.h
*   Author : LiuYao
*   Date : 2017-12-31
*   Description : 
*
================================================================*/
#ifndef _VARIABLE_FACTORY_H
#define _VARIABLE_FACTORY_H

#include "../graph/node.h"
#include "../graph/variable.h"

class VariableFactory : public Factory {
    private:
        Matrix value_;
        Node* hook() { return new Variable(value_); }

    public:
        VariableFactory(const Matrix& value) : value_(value) {}
};

#endif
